package nsq

import (
	"server/app/nsq/server"
	"server/pkg/nsq"
)

var Register = []*nsq.Handel{
	&nsq.Handel{
		Retry:   5,
		Topic:   server.GroupMessage{}.GetTopic(),
		Channel: server.GroupMessage{}.GetChannel(),
		Handel:  server.GroupMessage{}.GetHandler(),
	},
	&nsq.Handel{
		Retry:   5,
		Topic:   server.UserMessage{}.GetTopic(),
		Channel: server.UserMessage{}.GetChannel(),
		Handel:  server.UserMessage{}.GetHandler(),
	},

	&nsq.Handel{
		Retry:   3,
		Topic:   server.GameMatch{}.GetTopic(),
		Channel: server.GameMatch{}.GetChannel(),
		Handel:  server.GameMatch{}.GetHandler(),
	},
}
